const { randomInt } = require("../tools");
const conference = async (ctx) => {
  const detail = [
    {
      key: 1,
      label: "茶饮服务",
      children: [
        { key: 1, label: "溧阳白茶", type: "number", includeCities: ["上海"] },
        { key: 2, label: "红茶", type: "number", includeCities: ["常州"] },
        { key: 3, label: "白开水", type: "number" },
        { key: 4, label: "现磨咖啡", type: "number" },
        { key: 16, label: "白茶", type: "number", includeCities: ["常州"] },
      ],
    },
    {
      key: 6,
      label: "签约基础服务",
      children: [
        { key: 10, label: "签约桌椅", type: "number", includeCities: ["常州"] },
        { key: 11, label: "签约本和笔", type: "number" },
        { key: 12, label: "茶歇桌", type: "number" },
        { key: 13, label: "演讲台", type: "number", includeCities: ["常州"] },
      ],
    },
    {
      key: 3,
      label: "席卡服务",
      children: [
        {
          key: 7,
          label: "席卡颜色",
          type: "radio",
          options: [
            { key: 1, label: "白色" },
            { key: 2, label: "粉色" },
          ],
          labelInBill: "席卡服务费",
        },
        {
          key: 8,
          label: "席卡内容",
          type: "text",
          maxLength: 200,
          hideInBill: true,
        },
      ],
    },
    {
      key: 2,
      label: "茶歇服务（30元/份）",
      labelForCity: { 上海: "茶歇服务（40元/份）" },
      children: [
        { key: 5, label: "水果盘（5种水果，随机搭配）", type: "number" },
        { key: 6, label: "水果+点心盘（各3种，随机搭配）", type: "number" },
      ],
    },
    {
      key: 4,
      label: "签约收费服务",
      children: [
        {
          key: 9,
          label: "签约桌花（250元）",
          type: "number",
          includeCities: ["常州"],
        },
        {
          key: 14,
          label: "横幅（120元）",
          type: "radio",
          options: [
            { key: 1, label: "需要" },
            { key: 0, label: "不需要" },
          ],
        },
        { key: 15, label: "横幅内容", type: "text", maxLength: 50 },
      ],
    },
  ];
  ctx.success({
    data: detail,
  });
};

module.exports = conference;
